package com.ftg.learn.privilege.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author KangJx
 * @date 2021/5/31
 */
@ApiModel
public class ResultType  implements Serializable {

    /**
     * 这个代表代码  0 为成功
     */
    @ApiModelProperty(value = "状态码",example ="0")
    private Integer code;

    /**
     * 返回影响的行数
     *  数字   json
     */
    @ApiModelProperty("返回数据")
    private Object data;

    /**
     * 提示信息
     */
    @ApiModelProperty("信息提示")
    private String msg;

    public ResultType(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
